import React from 'react';
class Child extends React.Component{
    render(){
        return (
            <div>
                <h2>子组件-{this.props.num}</h2>
            </div>
        )
    }
}
export default Child;